﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebAdmin/MasterPage_WebAdmin.master" AutoEventWireup="true" CodeBehind="AdsMgmtAdsPage.aspx.cs" Inherits="Ones.WebAdmin.AdsMgmtAdsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server"> </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="row">
        <div class="col-md-12">
            <div class="widget">
                <div class="widget-header">
                    <i class="icon-arrow-down"></i>
                    <h3>
                        <b>Advertisesment</b> Management.
                    </h3>
                </div>
                <div class="widget-content">
                    <div id="frmCategory" class="form-horizontal validate-needed-form required">
                        <fieldset>
                            <legend class="section">
                                Ads Info.
                            </legend>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Contact
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:DropDownList ID="cbbContact" runat="server" CssClass="form-control required"> </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Block
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:DropDownList ID="cbbBlock" runat="server" CssClass="form-control required"> </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Date expire
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtDateExpire" runat="server" class="form-control required"/>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Link
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtLink" runat="server" class="form-control required"/>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="col-md-3">
                                    <label for="hint-field" class="control-label">
                                        Browse to image location
                                    </label>
                                </div>
                                <div class="col-md-9">
                                    <div class="form-group">
                                        <asp:TextBox ID="txtImageLink" runat="server" Visible="false" class="form-control"/>
                                        <asp:FileUpload ID="FileUpload1" runat="server"/>
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                        <div class="form-actions">
                            <div>
                                <%if (Session["cmd"] != null)
                                {
                                    if (Session["cmd"].ToString().Equals("edit"))
                                    { %>
                                        <asp:Button ID="btnUpdate" runat="server" Text="Save" OnClick="btnUpdate_Click" class="btn btn-warning"/>
                                    <% }
                                    if (Session["cmd"].ToString().Equals("delete"))
                                    { %>
                                        <asp:Button ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click" class="btn btn-danger"/>
                                    <% }
                                }
                                else
                                { %>
                                    <asp:Button ID="btnAdd" runat="server" Text="Save" OnClick="btnAdd_Click" class="btn btn-success"/>
                                    <%
                                }%>

                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" class="btn btn-default"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphScript" runat="server"> </asp:Content>
